// Styles for CodeMirror editor for the Metro theme

$textarea-cols: 40 !default;
$textarea-rows: 15 !default;

.CodeMirror {
  font-family: $font-family-monospace !important;
  height: 20rem;
  border: 1px solid #ccc;
}

// Code mirror default style (do not affect the console style)
.CodeMirror.cm-s-default {
  // @see: issue #17705
  div.CodeMirror-scroll {
    margin-right: 0;
    padding-bottom: 0;
  }
}

#pma_console .CodeMirror {
  border: none;
}

.CodeMirror * {
  font-family: $font-family-monospace;
}

#inline_editor_outer .CodeMirror {
  height: ceil($textarea-rows * 0.4em);
  margin-bottom: 10px;
}

.insertRowTable .CodeMirror {
  min-height: ceil($textarea-rows * 0.6em);
  min-width: ceil($textarea-cols * 0.6em);
}

#pma_console .CodeMirror-gutters {
  background-color: initial;
  border: none;
}

.autocomplete-column-name {
  display: inline-block;
}

.autocomplete-column-hint {
  display: inline-block;
  float: right;
  color: #666;
  margin-left: 1em;
}

.CodeMirror-hints {
  z-index: 1999;
}

.CodeMirror-lint-tooltip {
  z-index: 2000;
  font-family: inherit;

  code {
    font-family: monospace;
    font-weight: bold;
  }
}
